package string.easy;

/**
 * 28. 实现 strStr()
 *
 * @author wangtianqi
 */
public class strStr {

    public static void main(String[] args) {
        String haystack = "hello", needle = "ll";
        System.out.println(myCode(haystack, needle));
    }
    public static int myCode(String haystack, String needle) {
        return haystack.indexOf(needle);
    }
}
